/*
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2022-09-28 11:19:55
 * @LastEditors: sueRimn
 * @LastEditTime: 2022-09-29 10:39:22
 */

let express = require("express");
let app = express();
let cors = require("cors");
let bodyParser = require("body-parser");
let router = require("./router");

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cors());
app.use(router);

app.listen(8080, () => {
  console.log("service start successfully");
})